package com.xd.core.api.entity;

import java.time.LocalDate;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xd.common.util.Sm4Util;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 电子账户申请关联信息
 * </p>
 *
 * @author ZX
 * @since 2025-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="BeneficiaryElectronic对象", description="电子账户申请关联信息")
public class BeneficiaryElectronic implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "申请编号")
    private Integer electronicId;

    @ApiModelProperty(value = "控股股东 01 受益人类型  02")
    private String type;

    @ApiModelProperty(value = "姓名")
    private String beneficiaryName;

    @ApiModelProperty(value = "证件类型")
    private String beneficiaryIdType;

    @ApiModelProperty(value = "证件号")
    private String beneficiaryIdNo;

    @ApiModelProperty(value = "证件生效日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date beneficiaryIdEffDate;

    @ApiModelProperty(value = "证件失效日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date beneficiaryIdOffDate;

    @ApiModelProperty(value = "电话")
    private String beneficiaryPhone;

    @ApiModelProperty(value = "地址")
    private String beneficiaryAddress;

    public static void main(String[] args) {
        String s = Sm4Util.decryptEcb("2DFBEE967C3155151E8A333046D439E2", "dd9fcdbf1a01821104a8591e00838327db3d23224aac4e793f32e1a8ab7bf88e0943e1e692efbf6afb74cf4413535694df7a913a2b8f682e60c926562514e922");
        System.out.println(s);
    }
}
